package com.ttg.web.redis;

import com.ttg.common.utils.sm.GmUtils;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/3/15 17:58
 */
@Data
@Component
@ConfigurationProperties(prefix="redission")
public class RedisProperties {
    private String address;
    private String password;

    public String getPassword() {
        return GmUtils.sm4ECBDecrypt(password);
    }

    private String model;
    private String masterName;
}
